package net.togogo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/admin")
public class HiController {

    @RequestMapping("hi/{userid}")
    public String sayHi(@PathVariable int userid, Model model){
        System.out.println("userid = " + userid);
        model.addAttribute("username","钱多多");
        return "/user.jsp";
    }
}
